﻿using BRMC.IntelligentCommunity.IntelligentCommunity.Parkings;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BRMC.IntelligentCommunity.Parkings.CarLog
{
    public interface ICarLogHistoryAppService
    {
        /// <summary>
        /// 车辆入场
        /// </summary>
        /// <param name="carId">车辆Id</param>
        /// <param name="carNum">车牌号</param>
        /// <param name="parkingId">车场Id</param>
        /// <param name="inTime">入场时间</param>
        /// <param name="cam_id">设备Id</param>
        /// <param name="cam_ip">设备Ip</param>
        /// <param name="device">岗亭信息</param>
        /// <returns></returns>
        Task CarIn(long carId, string carNum, long parkingId, DateTime inTime, string cam_id, string cam_ip, Device device);

        /// <summary>
        /// 车辆出场
        /// </summary>
        /// <param name="carId">车辆Id</param>
        /// <param name="carNum">车牌号</param>
        /// <param name="parkingId">车场Id</param>
        /// <param name="outTime">出场时间</param>
        /// <param name="cam_id">设备Id</param>
        /// <param name="cam_ip">设备Ip</param>
        /// <param name="device">岗亭信息</param>
        /// <returns></returns>
        Task<CostAndRemark> CarOut(long carId, string carNum, long parkingId, DateTime outTime, string cam_id, string cam_ip, Device device);
    }
}
